home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13057 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: why use stream io ?
  5. Date: 23 Mar 1996 03:27:46 GMT
  6. Organization: Pipeline USA
  7. Message-ID: <4ivr3i$164@news1.h1.usa.pipeline.com>
  8. References: <CTB.96Mar22154718@yoda.natadm>
  9. NNTP-Posting-Host: 38.8.61.11
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 22, 1996 23:47:17 in article <why use stream io ?>, 'ctb@yoda.natadm
  16. (Charles Booher)' wrote: 
  17.  
  18.  
  19. >I am really trying to understand the uses of stream I/O. 
  20. >1. It creates enormous portability problems, linking problems. 
  21. >2. It creates segmentaion faults that are very difficult  
  22. >to track down and correct. 
  23. I suspect that the segmentation faults are due to programmer error, 
  24. unless you happen to have a buggy implementation.  Iostream on 
  25. all the platforms I use works flawlessly, although a bit slowly. 
  26.  
  27. >..[deleted].. I can see no valid reason to ever use the stream library,
  28. but  
  29. >perhaps there is some great thing that it does that I am as of yet unaware
  30.  
  31. >of.  If there is some compelling reason to use the iostream library I
  32. would 
  33. >like to know what it si.  Until then I'm going to avoid using it. 
  34. To each his own.  There are times when I also resort to stdio; however 
  35. it is only when the situation in my estimation calls for it.  For example, 
  36. when I need to produce tabular reports to a line printer, printf is hard 
  37. to beat in coding speed.  The rest of the time I use iostreams for its 
  38. type safety and object-oriented approach. 
  39.     
  40. >Has anyone gotten the vast, and otherwise very good ddd-1.4 going on a  
  41. >Linux-elf system using g++ ? 
  42. No.  I made an attempt to build it on a Solaris 2.3 but it errored off 
  43. and I haven't had time to look into it.  It's not the fault of iostreams, 
  44. though :-). 
  45.  
  46. -- 
  47.  
  48. Pete Grant 
  49. Kalevi, Inc. 
  50. Sofware Engineering
  51.